package com.ruoyi.eam.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.eam.mapper.EamReturnDMapper;
import com.ruoyi.eam.doman.EamReturnD;
import com.ruoyi.eam.service.IEamReturnDService;

/**
 * 资产退还从Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-09
 */
@Service
public class EamReturnDServiceImpl implements IEamReturnDService 
{
    @Autowired
    private EamReturnDMapper eamReturnDMapper;

    /**
     * 查询资产退还从
     * 
     * @param assetId 资产退还从主键
     * @return 资产退还从
     */
    @Override
    public EamReturnD selectEamReturnDByAssetId(String manageId)
    {
        return eamReturnDMapper.selectEamReturnDByAssetId(manageId);
    }

    /**
     * 查询资产退还从列表
     * 
     * @param eamReturnD 资产退还从
     * @return 资产退还从
     */
    @Override
    public List<EamReturnD> selectEamReturnDList(EamReturnD eamReturnD)
    {
        return eamReturnDMapper.selectEamReturnDList(eamReturnD);
    }

    /**
     * 新增资产退还从
     * 
     * @param eamReturnD 资产退还从
     * @return 结果
     */
    @Override
    public int insertEamReturnD(EamReturnD eamReturnD)
    {
        return eamReturnDMapper.insertEamReturnD(eamReturnD);
    }

    /**
     * 修改资产退还从
     * 
     * @param eamReturnD 资产退还从
     * @return 结果
     */
    @Override
    public int updateEamReturnD(EamReturnD eamReturnD)
    {
        return eamReturnDMapper.updateEamReturnD(eamReturnD);
    }

    /**
     * 批量删除资产退还从
     * 
     * @param assetIds 需要删除的资产退还从主键
     * @return 结果
     */
    @Override
    public int deleteEamReturnDByAssetIds(String[] manageId)
    {
        return eamReturnDMapper.deleteEamReturnDByAssetIds(manageId);
    }

    /**
     * 删除资产退还从信息
     * 
     * @param assetId 资产退还从主键
     * @return 结果
     */
    @Override
    public int deleteEamReturnDByAssetId(String manageId)
    {
        return eamReturnDMapper.deleteEamReturnDByAssetId(manageId);
    }
}
